package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.FactDeviceAlarmRule;
import com.sxhalo.fsms.domain.SysDeviceAlarm;
import com.sxhalo.fsms.domain.SysDeviceType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDeviceAlarmMapper {
    int deleteByPrimaryKey(Integer attrId);

    int insert(SysDeviceAlarm record);

    int insertSelective(SysDeviceAlarm record);

    SysDeviceAlarm selectByPrimaryKey(Integer attrId);

    int updateByPrimaryKeySelective(SysDeviceAlarm record);

    int updateByPrimaryKey(SysDeviceAlarm record);

    int getCount(@Param("where")String where);

    List<SysDeviceAlarm> findWhereList(@Param("where")String where, @Param("order")String order);

    List<SysDeviceAlarm> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);

    int batchUpdate(@Param("record") SysDeviceAlarm record, @Param("where")String where);
}